package com.example.service;

import com.example.dao.UserMapper;
import com.example.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class userServicce {

    @Autowired
    UserMapper userMapper;

    public int insertUser(User user){

        return userMapper.insertUser(user);


    }

    public int updateImage(User user) {
        return userMapper.updateImage(user);
    }

    public User selectById(int i) {
        return userMapper.selectById(i);
    }
}
